package office.service.sale;

import java.util.List;

import office.action.sale.form.RivalConditionForm;
import office.action.sale.form.RivalForm;
import office.action.sale.wrapper.RivalWrapper;
import platform.common.bo.Page;
import platform.common.exception.BusinessException;

/**
 * 产品明细管理
 * @author ZhangYQ
 *
 */
public interface IRivalService {
	/**
	 * 获取分页信息
	 * @return
	 * @throws BusinessException
	 */
	public Page getPageInfo(RivalConditionForm condition)throws BusinessException;
	/**
	 * 获取所有的销售机会
	 * @param page
	 * @return
	 * @throws BusinessException
	 */
	public List<RivalWrapper> findAllRival(RivalConditionForm condition,Page page)throws BusinessException;
	/**
	 * 获取所有的竞争对手
	 * @param condition
	 * @return
	 * @throws BusinessException
	 */
	public List<RivalWrapper> findAllRival(RivalConditionForm condition)throws BusinessException;
	/**
	 * 编辑销售机会
	 * @param saleChanceForm
	 * @throws BusinessException
	 */
	public void editRival(RivalForm form)throws BusinessException;
	
	/**
	 * 删除销售机会
	 * @param id
	 * @throws BusinessException
	 */
	public void delRivalById(String id)throws BusinessException;
	/**
	 * 根据id获取对象
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public RivalForm getById(String id)throws BusinessException;
}
